package 笔试.吉比特.杂项;

class Father {
    public Father() {
        System.out.println("父类无参构造");
    }
}

public class Test extends Father {
    private int a;

    public Test() {
        System.out.println("子类无参构造");
    }

    public Test(int a) {
        this.a = a;
        System.out.println("子类有参构造");
    }

    public static void main(String[] args) {
//        Test test = new Test(1);
        Test test1 = new Test();
    }

}
